import React from "react";

const biTimeRangeDict = {
  "前一小时": "Last hour",
  "前一天": "Last day",
  "前一周": "Last week",
  "前一月": "Last month",
  "前一年": "Last year"
};

const biTimeRangeReverseDict = {
  "Last hour": "前一小时",
  "Last day": "前一天",
  "Last week": "前一周",
  "Last month": "前一月",
  "Last year": "前一年"
};

const biParamRequestDict = {
  rowLimit: 50,
  force: false,
  cache_timeout: 10
};

const vizTypeDict = {
  line: '点线图',
  pie: '饼图',
  chart: '柱状图'
};

const paginationParams = {
  pageSize: 10,
  firstPage: 1,
};

const ERROR_CODE = 500;

const FAILED = 'failed';
const NO_DATA = 'nodata';

const overlayLoadingTemplate = '<span class="ag-overlay-loading-center">加载中...</span>';
const overlayNoRowsTemplate = '<span style="padding: 10px; border: 2px solid #444; background: lightgoldenrodyellow;">暂无数据</span>'


export const HANFAN_MEMBER_MAPPING_DICT = {
  "CG_LT_GL_GL04_TQXZS": "透气性指数",
  "CG_LT_GL_GL04_FYLL": "富氧流量",
  "CG_LT_GL_GL04_ZXQL": "T阀座温度/T顶温",
  "CG_LT_GL_GL04_RFWD": "热风温度",
  "CG_LT_GL_GL04_LFLL": "冷风流量",
  "CG_LT_GL_GL04_FCokeRate": "煤比",
  "CG_LT_GL_GL04_FCoalRate": "焦比",
  "CG_LT_GL_GL04_XBYCZB": "下部压差占比",
  "CG_LT_GL_GL04_SBYCZB": "上部压差占比",
};

export const MEMBER_MAPPING_DICT = {
  "CG_LT_GL_GL04_LFYL": "冷风压力",
  "CG_LT_GL_GL04_LFLL": "冷风流量",
  "CG_LT_GL_GL04_RFYL02": "热风压力02",
  "CG_LT_GL_GL04_RFWD": "热风温度",
  "CG_LT_GL_GL04_LDYL": "炉顶压力",
  "CG_LT_GL_GL04_FSBZ": "标准风速",
  "CG_LT_GL_GL04_FSSJ": "实际风速",
  "CG_LT_GL_GL04_GFDNKG": " 鼓风动能KG",
  "CG_LT_GL_GL04_FYLL": "富氧流量",
  "CG_LT_GL_GL04_JSWD": "进水温度",
  "CG_LT_GL_GL04_LDWD01": "1#炉顶温度",
  "CG_LT_GL_GL04_LDWD02": "2#炉顶温度",
  "CG_LT_GL_GL04_LDWD03": "3#炉顶温度",
  "CG_LT_GL_GL04_LDWD04": "4#炉顶温度",
  "CG_LT_GL_GL04_FZWD": "阀座温度",
  "CG_LT_GL_GL04_GLRSZLL": "高炉软水总流量",
  "CG_LT_GL_GL04_COZXFX": "煤气在线分析",
  "CG_LT_GL_GL04_CO2ZXFX": "CO2在线分析",
  "CG_LT_GL_GL04_N2ZXZF": "N2在线分析",
  "CG_LT_GL_GL04_H2ZXZF": "H2在线分析",
  "CG_LT_GL_GL04_SBYC01": "1#上部压差",
  "CG_LT_GL_GL04_SBYC02": "2#上部压差",
  "CG_LT_GL_GL04_SBYC03": "3#上部压差",
  "CG_LT_GL_GL04_SBYC04": "4#上部压差",
  "CG_LT_GL_GL04_XBYC01": "1#下部压差",
  "CG_LT_GL_GL04_XBYC02": "2#下部压差",
  "CG_LT_GL_GL04_XBYC03": "3#下部压差",
  "CG_LT_GL_GL04_XBYC04": "4#下部压差",
  "CG_LT_GL_GL04_TQXZS": "透气性指数",
  "CG_LT_GL_GL04_RFH": "热负荷",
  "CG_LT_GL_GL04_ZXQL": "T阀座温度/T顶温",
  "CG_LT_GL_GL04_SBYCZB": "上部压差占比",
  "CG_LT_GL_GL04_ZBYCZB": "中部压差占比",
  "CG_LT_GL_GL04_XBYCZB": "下部压差占比",
  "CG_LT_GL_GL04_DW": "炉顶温度",
  "CG_LT_GL_GL04_XBYC": "下部压差",
  "CG_LT_GL_GL04_SBYC": "上部压差",
  "CG_LT_GL_GL04_FCokeRate": "焦比",
  "CG_LT_GL_GL04_FCoalRate": "煤比",
  "CG_LT_GL_GL04_Ftswd": "铁水温度",
  "CG_LT_GL_GL04_V": "V",
  "CG_LT_GL_GL04_YC": "压差",
  "CG_LT_GL_GL04_Si_Ti": "Si+Ti",
  "CG_LT_GL_GL04_RLB": "燃料比",
  "CG_LT_GL_GL04_FLiLunTie": "理论铁",
  "CG_LT_GL_GL04_MQLYL": "煤气利用率"
};

export  const HANFAN_GLOBAL_MAPPING_DICT = {
  "CG_LT_GL_GL04_Yuanranliao_Shao_TFe":"[y_shao_TFe]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_FeO":"[y_shao_FeO]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_CaO":"[y_shao_CaO]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_SiO2":"[y_shao_SiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_P":"[y_shao_P]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_MgO":"[y_shao_MgO]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_Al2O3":"[y_shao_Al2O3]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_TiO2":"[y_shao_TiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_V2O5":"[y_shao_V2O5]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_R":"[y_shao_R]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_RZhongzhi":"[y_shao_R中值]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_PinweiZhongzhi":"[y_shao_品位中值]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_ZSshaifen":"[y_shao_筛分指数]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_Less10mm":"[y_shao_小于10mm粒度]",
  "CG_LT_GL_GL04_Yuanranliao_Shao_ZSzhuangu":"[y_shao_转鼓指数]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_TFe":"[y_qiu_TFe]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_FeO":"[y_qiu_FeO]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_CaO":"[y_qiu_CaO]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_SiO2":"[y_qiu_SiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_MgO":"[y_qiu_MgO]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_Al2O3":"[y_qiu_Al2O3]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_TiO2":"[y_qiu_TiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_V2O5":"[y_qiu_V2O5]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_P":"[y_qiu_P]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_S":"[y_qiu_S]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_H2O":"[y_qiu_H2O]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_QDkangya":"[y_qiu_抗压强度]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_ZSshaifen":"[y_qiu_筛分指数]",
  "CG_LT_GL_GL04_Yuanranliao_Qiu_ZSzhuangu":"[y_qiu_转鼓指数]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_TFe":"[y_kuai_TFe]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_CaO":"[y_kuai_CaO]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_SiO2":"[y_kuai_SiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_Al2O3":"[y_kuai_Al2O3]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_TiO2":"[y_kuai_TiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_P":"[y_kuai_P]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_S":"[y_kuai_S]",
  "CG_LT_GL_GL04_Yuanranliao_Kuai_H2O":"[y_kuai_H2O]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_Ad":"[y_jiao_Ad]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_FCad":"[y_jiao_FCad]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_VDaf":"[y_jiao_VDaf]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_Std":"[y_jiao_Std]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_CRI":"[y_jiao_CRI]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_CSR":"[y_jiao_CSR]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_H2O":"[y_jiao_H2O]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_M10":"[y_jiao_M10]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_M40":"[y_jiao_M40]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_Less25mm":"[y_jiao_小于25mm]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_Greater40mm":"[y_jiao_大于40mm粒度]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_Greater60mm":"[y_jiao_大于60mm]",
  "CG_LT_GL_GL04_Yuanranliao_Coke_Greater80mm":"[y_jiao_大于80mm]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_TFe":"[y_ore_TFe]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_FeO":"[y_ore_FeO]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_CaO":"[y_ore_CaO]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_SiO2":"[y_ore_SiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_MgO":"[y_ore_MgO]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_Al2O3":"[y_ore_Al2O3]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_TiO2":"[y_ore_TiO2]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_V2O5":"[y_ore_V2O5]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_P":"[y_ore_P]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_S":"[y_ore_S]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_H2O":"[y_ore_H2O]",
  "CG_LT_GL_GL04_Yuanranliao_Ore_R":"[y_ore_R",
};

export {
  biTimeRangeDict, biTimeRangeReverseDict, biParamRequestDict, vizTypeDict,
  paginationParams, FAILED,ERROR_CODE,overlayLoadingTemplate,overlayNoRowsTemplate
}
